.light {
  &.login-wrapper {
    background-color: white;
    // background-image: url('@/assets/assets-login-bg-white.png');
    background-image: url("@/assets/assets-login-bg.png");
  }
}

.dark {
  &.login-wrapper {
    background-color: var(--td-bg-color-page);
    // background-image: url('@/assets/assets-login-bg-black.png');
    background-image: url("@/assets/assets-login-bg.png");
  }
}

.login-wrapper {
  // height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: 100%;
  background-image: url("@/assets/assets-login-bg.png");
}

.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 603px;
  height: 350px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.title-container {
  .title {
    font: var(--td-font-headline-large);
    color: var(--td-text-color-primary);
    margin-top: var(--td-comp-margin-xs);

    &.margin-no {
      margin-top: 0;
    }
  }

  .sub-title {
    margin-top: var(--td-comp-margin-xxl);

    .tip {
      display: inline-block;
      margin-right: var(--td-comp-margin-s);
      font: var(--td-font-body-medium);

      &:first-child {
        color: var(--td-text-color-secondary);
      }

      &:last-child {
        color: var(--td-text-color-primary);
        cursor: pointer;
      }
    }
  }
}

.item-container {
  width: 400px;
  margin-top: var(--td-comp-margin-xxxxl);

  &.login-qrcode {
    .tip-container {
      margin-bottom: var(--td-comp-margin-l);
      font: var(--td-font-body-medium);
      display: flex;
      align-items: flex-start;

      .tip {
        color: var(--td-text-color-primary);
        margin-right: var(--td-comp-margin-s);
      }

      .refresh {
        display: flex;
        align-items: center;
        color: var(--td-brand-color);

        .t-icon {
          font-size: var(--td-comp-size-xxxs);
          margin-left: var(--td-comp-margin-xs);
        }

        &:hover {
          cursor: pointer;
        }
      }
    }

    .bottom-container {
      margin-top: 32px;
    }
  }

  &.login-phone {
    .bottom-container {
      margin-top: 66px;
    }
  }

  .check-container {
    display: flex;
    align-items: center;

    &.remember-pwd {
      margin-bottom: var(--td-comp-margin-l);
      justify-content: space-between;
    }

    span {
      color: var(--td-brand-color);

      &:hover {
        cursor: pointer;
      }
    }
  }

  .verification-code {
    display: flex;
    align-items: center;

    :deep(.t-form__controls) {
      width: 100%;

      button {
        flex-shrink: 0;
        margin-left: var(--td-comp-margin-l);
        width: 128px;
      }
    }
  }

  .btn-container {
    margin-top: var(--td-comp-margin-xxxxl);

    .t-button {
      background: #ad2121;
      border-radius: 0;
      border: 0;
    }
  }
}

.switch-container {
  margin-top: var(--td-comp-margin-xxl);

  .tip {
    font: var(--td-font-body-medium);
    color: var(--td-brand-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-right: var(--td-comp-margin-l);

    &:last-child {
      &::after {
        display: none;
      }
    }

    &::after {
      content: "";
      display: block;
      width: 1px;
      height: 12px;
      background: var(--td-component-stroke);
      margin-left: var(--td-comp-margin-l);
    }
  }
}

.check-container {
  font: var(--td-font-body-medium);
  color: var(--td-text-color-secondary);

  .tip {
    float: right;
    font: var(--td-font-body-medium);
    color: var(--td-brand-color);
  }
}

.copyright {
  font: var(--td-font-body-medium);
  position: absolute;
  left: 5%;
  bottom: 64px;
  color: var(--td-text-color-secondary);
}
:deep(.t-form-item-tips) {
  color: red;
}
@media screen and (max-height: 700px) {
  .copyright {
    display: none;
  }
}

.rand_img {
  vertical-align: middle;
  width: 130px;
  height: 35px;
  margin-left: 15px;
  border: 1px solid #000;
}

@media screen and (max-width: 750px) {
  .login-container {
    width: 90%;
    height: auto;
    padding: 30px 20px;
  }

  .item-container {
    width: 80%;
  }

  .title-container {
    .title {
      font-size: 24px;
    }

    .sub-title {
      margin-top: 15px;
      font-size: 14px;
    }
  }

  .check-container {
    font-size: 14px;

    .tip {
      font-size: 14px;
    }
  }

  .rand_img {
    width: 100px;
    height: 30px;
    margin-left: 10px;
  }
}
